from tools import is_factor
sum = 0

for x in range(2,2000001):
    if is_factor(x):
        sum = sum + x

print(sum)